Skip to content

refactor(web): disable tile opacity controls when Google Map tiles are present[VIZ-DEV-71] - #167

Merged
airslice merged 3 commits into
mainfrom
refactor/disable-opacity-on-google-map
Jul 7, 2026
Merged

refactor(web): disable tile opacity controls when Google Map tiles are present[VIZ-DEV-71]#167
airslice merged 3 commits into
mainfrom
refactor/disable-opacity-on-google-map

Conversation

@mkumbobeaty

Copy link
Copy Markdown
Contributor

Overview

This PR enforces full opacity for Google Maps tiles to align with Google Maps Platform Terms of Service, which require map tiles to be displayed without transparency modifications. When a layer contains one or more Google Maps tile sources, the tile opacity is automatically set to 1, and the opacity control is disabled in the UI to prevent unsupported configuration changes and ensure consistent rendering behavior.

Screenshot 2026-06-21 at 01 45 16

What I've done

What I haven't done

How I tested

Which point I want you to review particularly

Memo

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enforces Google Maps tile full-opacity behavior (for ToS compliance) by forcing tile opacity to 1 at render time and disabling the opacity control in the editor UI when Google tiles are involved.

Changes:

  • Added i18n copy explaining why opacity controls are disabled when Google Maps tiles are present.
  • Updated Visualizer scene-property transformation to override tile opacity for Google tile types.
  • Propagated a disabled flag through PropertyItem → PropertyField → SliderField to disable the tile opacity slider in the editor.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
web/src/services/i18n/translations/ja.yml Adds Japanese translation for the “opacity disabled for Google tiles” description.
web/src/services/i18n/translations/en.yml Adds English translation for the “opacity disabled for Google tiles” description.
web/src/classic/components/molecules/Visualizer/hooks.ts Forces tile opacity to 1 when Google tile types are present.
web/src/classic/components/molecules/EarthEditor/PropertyPane/PropertyItem/index.tsx Disables the opacity field (and adds description) when Google tiles are detected.
web/src/classic/components/molecules/EarthEditor/PropertyPane/PropertyField/SliderField/index.tsx Wires disabled into the RCSlider instance and adjusts disabled styling.
web/src/classic/components/molecules/EarthEditor/PropertyPane/PropertyField/index.tsx Adds disabled prop plumbing down into field components.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web/src/classic/components/molecules/Visualizer/hooks.ts
@airslice
airslice merged commit 70e52db into main Jul 7, 2026
8 checks passed
@airslice
airslice deleted the refactor/disable-opacity-on-google-map branch July 7, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants